// 文章分类配置
// 将导航菜单与文章分类ID进行映射

export const CATEGORY_CONFIG = {
  // 提招院校相关
  SCHOOLS_PHONE: {
    id: 10,
    name: '院校电话',
    path: '/schools/phone',
    breadcrumb: ['首页', '提招院校', '院校电话']
  },
  SCHOOLS_SCHEDULE: {
    id: 11,
    name: '日程汇总',
    path: '/schools/schedule',
    breadcrumb: ['首页', '提招院校', '日程汇总']
  },
  SCHOOLS_RANKING: {
    id: 12,
    name: '院校排名',
    path: '/schools/ranking',
    breadcrumb: ['首页', '提招院校', '院校排名']
  },
  SCHOOLS_WEBSITE: {
    id: 13,
    name: '院校官网',
    path: '/schools/website',
    breadcrumb: ['首页', '提招院校', '院校官网']
  },
  SCHOOLS_MAJORS: {
    id: 14,
    name: '专业介绍',
    path: '/schools/majors',
    breadcrumb: ['首页', '提招院校', '专业介绍']
  },
  
  // 简章分数相关
  BROCHURE_OUTLINE: {
    id: 15,
    name: '简章汇总',
    path: '/brochure/outline',
    breadcrumb: ['首页', '简章分数', '简章汇总']
  },
  BROCHURE_SCORE_LINES: {
    id: 16,
    name: '历年分数',
    path: '/brochure/score-lines',
    breadcrumb: ['首页', '简章分数', '历年分数']
  },
  BROCHURE_INFO: {
    id: 17,
    name: '简章信息',
    path: '/brochure/info',
    breadcrumb: ['首页', '简章分数', '简章信息']
  },
  
  // 招生流程相关
  ADMISSION_REGISTRATION: {
    id: 20,
    name: '报名入口',
    path: '/admission/registration',
    breadcrumb: ['首页', '招生流程', '报名入口']
  },
  
  // 入围信息相关
  ADMISSION_QUALIFIED: {
    id: 21,
    name: '入围查询',
    path: '/admission/qualified',
    breadcrumb: ['首页', '入围信息', '入围查询']
  },
  ADMISSION_QUALIFIED_SCORES: {
    id: 22,
    name: '入围分数',
    path: '/admission/qualified/scores',
    breadcrumb: ['首页', '入围信息', '入围分数']
  },
  ADMISSION_QUALIFIED_INFO: {
    id: 23,
    name: '入围信息',
    path: '/admission/qualified/info',
    breadcrumb: ['首页', '入围信息', '入围信息']
  },
  
  // 缴费确认相关
  ADMISSION_PAYMENT_LINKS: {
    id: 30,
    name: '缴费链接',
    path: '/admission/payment/links',
    breadcrumb: ['首页', '缴费确认', '缴费链接']
  },
  ADMISSION_PAYMENT_INFO: {
    id: 31,
    name: '缴费信息',
    path: '/admission/payment/info',
    breadcrumb: ['首页', '缴费确认', '缴费信息']
  },
  
  // 校测考纲相关
  ADMISSION_EXAM_OUTLINE: {
    id: 40,
    name: '考纲与时间',
    path: '/admission/exam/outline',
    breadcrumb: ['首页', '校测考纲', '考纲与时间']
  },
  ADMISSION_EXAM_INFO: {
    id: 41,
    name: '综测信息',
    path: '/admission/exam/info',
    breadcrumb: ['首页', '校测考纲', '综测信息']
  },
  
  // 录取名单相关
  ADMISSION_RESULTS_LIST: {
    id: 50,
    name: '录取名单',
    path: '/admission/results/list',
    breadcrumb: ['首页', '录取名单', '录取名单']
  },
  ADMISSION_RESULTS_SCORES: {
    id: 51,
    name: '成绩查询',
    path: '/admission/results/scores',
    breadcrumb: ['首页', '录取名单', '成绩查询']
  },
  ADMISSION_RESULTS_INFO: {
    id: 52,
    name: '录取信息',
    path: '/admission/results/info',
    breadcrumb: ['首页', '录取名单', '录取信息']
  },
  
  // 招生资讯
  ARTICLES: {
    id: 1,
    name: '招生资讯',
    path: '/articles',
    breadcrumb: ['首页', '招生资讯']
  }
}

// 根据路径获取分类配置
export const getCategoryByPath = (path) => {
  return Object.values(CATEGORY_CONFIG).find(config => config.path === path)
}

// 根据分类ID获取分类配置
export const getCategoryById = (id) => {
  return Object.values(CATEGORY_CONFIG).find(config => config.id === id)
}

// 获取所有分类列表
export const getAllCategories = () => {
  return Object.values(CATEGORY_CONFIG)
}

// 分类标签映射
export const CATEGORY_TAGS = {
  // 院校相关标签
  10: ['联系方式', '招生办', '咨询电话'],
  11: ['时间安排', '重要节点', '截止日期'],
  12: ['院校评价', '排行榜', '竞争力'],
  13: ['官方网站', '院校信息', '最新动态'],
  14: ['专业介绍', '课程设置', '就业前景'],
  
  // 简章分数标签
  15: ['招生简章', '政策解读', '报考指南'],
  16: ['分数线', '录取数据', '历年统计'],
  17: ['简章详情', '招生计划', '专业设置'],
  
  // 招生流程标签
  20: ['网上报名', '报名指南', '注意事项'],
  
  // 入围信息标签
  21: ['入围名单', '查询方式', '结果公布'],
  22: ['入围分数', '分数统计', '录取概率'],
  23: ['入围通知', '后续安排', '确认须知'],
  
  // 缴费确认标签
  30: ['缴费链接', '支付方式', '缴费指南'],
  31: ['缴费通知', '费用标准', '退费政策'],
  
  // 校测考纲标签
  40: ['考试大纲', '考试时间', '考试安排'],
  41: ['综合测试', '面试安排', '技能考核'],
  
  // 录取名单标签
  50: ['录取结果', '录取名单', '确认入学'],
  51: ['成绩查询', '分数公布', '排名情况'],
  52: ['录取通知', '入学手续', '报到安排'],
  
  // 招生资讯标签
  1: ['政策解读', '招生动态', '重要通知']
}

// 根据分类ID获取推荐标签
export const getTagsByCategoryId = (categoryId) => {
  return CATEGORY_TAGS[categoryId] || []
}